home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1380.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  2.4 KB  |  107 lines

  1. 102
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. SetPrinter 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baSetPrinter changes settings for the default printer.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baSetPrinter( Info, Data )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, any (Xtra) or string (UCD) 
  36. --- RECORDSEPARATOR ---
  37. Info is the type of information to set. 
  38. --- RECORDSEPARATOR ---
  39. Can be 
  40. --- RECORDSEPARATOR ---
  41. "default" 
  42. --- RECORDSEPARATOR ---
  43. set the current default printer (string) 
  44. --- RECORDSEPARATOR ---
  45. "orientation" 
  46. --- RECORDSEPARATOR ---
  47. the orientation of the default printer (string) 
  48. --- RECORDSEPARATOR ---
  49. "paper" 
  50. --- RECORDSEPARATOR ---
  51. the selected paper size of the default printer (string) 
  52. --- RECORDSEPARATOR ---
  53. "papername" 
  54. --- RECORDSEPARATOR ---
  55. the name of 
  56. --- RECORDSEPARATOR ---
  57. the selected paper of the default printer (string) 
  58. --- RECORDSEPARATOR ---
  59. "copies" 
  60. --- RECORDSEPARATOR ---
  61. the number of copies to print (integer - Xtra, string - UCD) 
  62. --- RECORDSEPARATOR ---
  63. Data is the data to set - the format depends on the info type. The UCD version will 
  64. --- RECORDSEPARATOR ---
  65. always be a string.
  66. --- RECORDSEPARATOR ---
  67.  
  68. --- RECORDSEPARATOR ---
  69. Returns:
  70. --- RECORDSEPARATOR ---
  71.  
  72. --- RECORDSEPARATOR ---
  73. Integer 
  74. --- RECORDSEPARATOR ---
  75. Returns 1 if successful, otherwise 0.
  76. --- RECORDSEPARATOR ---
  77.  
  78. --- RECORDSEPARATOR ---
  79. Examples:
  80. --- RECORDSEPARATOR ---
  81.  
  82. --- RECORDSEPARATOR ---
  83. Director: 
  84. --- RECORDSEPARATOR ---
  85. set ok = baSetPrinter( "default", "Epson 400 Stylus Color" ) 
  86. --- RECORDSEPARATOR ---
  87. set ok = baSetPrinter( "copies", 2 ) 
  88. --- RECORDSEPARATOR ---
  89. Authorware: 
  90. --- RECORDSEPARATOR ---
  91. ok := baSetPrinter( "orientation", "landscape" ) 
  92. --- RECORDSEPARATOR ---
  93. ok := baSetPrinter( "copies", "2" )
  94. --- RECORDSEPARATOR ---
  95.  
  96. --- RECORDSEPARATOR ---
  97. Notes
  98. --- RECORDSEPARATOR ---
  99. :
  100. --- RECORDSEPARATOR ---
  101.  
  102. --- RECORDSEPARATOR ---
  103. The "default" option only requires the name of the printer, not the port or driver. 
  104. --- RECORDSEPARATOR ---
  105. The "paper" option uses the same names as the baPrinterInfo "paper". 
  106. --- RECORDSEPARATOR ---
  107. The "papername" option uses the same names as the baPrinterInfo "papername".